package com.zkjl.protect_business.vo;

import com.zkjl.protect_business.entity.BusinessField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "业务分类VO")
public class BusinessVO {


    @ApiModelProperty(notes = "id")
    private String id;

    @ApiModelProperty(notes = "名称")
    private String name;

    @ApiModelProperty(notes = "父级id")
    private String pid;

    @ApiModelProperty(notes = "父级名称")
    private String pname;

    @ApiModelProperty(notes = "路径")
    private String path;

    @ApiModelProperty(notes = "排序")
    private Integer sort;

    @ApiModelProperty(notes = "路由")
    private String routing = "business";

    @ApiModelProperty(notes = "包含字段")
    private List<BusinessField> fields;

    @ApiModelProperty(notes = "子业务")
    private List<BusinessVO> children;

}
